"use strict";

const { Controller } = require("egg");

class classLogController extends Controller {
  async get() {
    const { ctx } = this;
    const req = ctx.request.body;
    //console.log(req);
    const res = await ctx.service.classLogService.get(req);
    const json = ctx.helper.json(
      res.data ? res.data : null,
      res.suc ? 200 : 500,
      res.msg
    );
    ctx.body = json;
  }
}

module.exports = classLogController;
